package priv.books.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;

/**
    * 财务表
    */
@Data
@TableName(value = "sale")
public class Sale {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 记录类型：0支出  1收入
     */
    @TableField(value = "type")
    private String type;

    /**
     * 销售/支出的价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    @TableField(value = "sale_num")
    private Integer saleNum;

    @TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

    /**
     * 销售/支出的时间
     */
    @TableField(value = "create_date")
    private String createDate;

    public static final String COL_ID = "id";

    public static final String COL_TYPE = "type";

    public static final String COL_PRICE = "price";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_SALE_NUM = "sale_num";
}